package juc.demo01;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class BlockQueueDemo {
    public static void main(String[] args) {
        BlockingQueue<String> blockingQeque = new ArrayBlockingQueue(3);
        System.out.println(blockingQeque.add("a"));
        System.out.println(blockingQeque.add("b"));
        System.out.println(blockingQeque.add("c"));

    }
}

